Skip to content

Conversation

DongBaiYue
Copy link
Contributor

@DongBaiYue DongBaiYue commented Aug 22, 2025

以下API接口进行装饰器参数适配后,需要修改对应的中文文档说明。
paddle.any
paddle.argsort
paddle.clip
paddle.squeeze
paddle.transpose
paddle.unsqueeze
paddle.chunk

Copy link

paddle-bot bot commented Aug 22, 2025

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7398.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具

@DongBaiYue DongBaiYue changed the title 7 api [API compatibility] Update 7 API Aug 25, 2025
Copy link
Collaborator

@mattheliu mattheliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

paddle.nonzero和paddle.chunk文档未修改

@DongBaiYue
Copy link
Contributor Author

paddle.nonzero和paddle.chunk文档未修改

paddle.nonzero不在该PR中,PR描述中移除paddle.nonzero。
paddle.chunk的修改在docs/api/paddle/chunk_cn.rst

Copy link
Collaborator

@mattheliu mattheliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

- **keepdim** (bool,可选) - 是否在输出 Tensor 中保留输入的维度。除非 keepdim 为 True,否则输出 Tensor 的维度将比输入 Tensor 小一维,默认值为 False。
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。
- **out** (Tensor,可选) - 输出 Tensor。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

强调一下是关键字参数,写清楚默认值

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

- **min** (float|int|Tensor,可选) - 裁剪的最小值,输入中小于该值的元素将由该元素代替,若参数为空,则不对输入的最小值做限制。数据类型可以是 float32 或形状为[]的 0-D Tensor,类型可以为 bfloat16、float16、float32、float64、int32,默认值为 None。
- **max** (float|int|Tensor,可选) - 裁剪的最大值,输入中大于该值的元素将由该元素代替,若参数为空,则不对输入的最大值做限制。数据类型可以是 float32 或形状为[]的 0-D Tensor,类型可以为 bfloat16、float16、float32、float64、int32,默认值为 None。
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。
- **out** (Tensor,可选) - 输出 Tensor。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

强调一下是关键字参数,写清楚默认值

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@sunzhongkai588 sunzhongkai588 merged commit e06897c into PaddlePaddle:develop Sep 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants